package com.stylefeng.guns.wx.common.persistence.model;

import java.io.Serializable;

import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.baomidou.mybatisplus.enums.IdType;

import java.io.Serializable;

/**
 * <p>
 * 用户关注的小说(需要更新提醒)
 * </p>
 *
 * @author shaohaiting
 * @since 2018-03-19
 */
@TableName("wx_user_novel")
public class UserNovel extends Model<UserNovel> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value = "id", type = IdType.INPUT)
	private String id;
    /**
     * 用户id
     */
	@TableField("user_open_id")
	private String userOpenId;
    /**
     * 小说网站id
     */
	@TableField("novel_web_id")
	private String novelWebId;
    /**
     * 小说id
     */
	@TableField("novel_id")
	private String novelId;
    /**
     * 小说标题
     */
	@TableField("novel_title")
	private String novelTitle;
    /**
     * 小说最新章节
     */
	@TableField("novel_latest_chapter")
	private String novelLatestChapter;
    /**
     * 最后通知时间
     */
	@TableField("last_send_time")
	private Date lastSendTime;
    /**
     * 通知标志:0未发送,1已发送
     */
	@TableField("send_flag")
	private String sendFlag;
    /**
     * 通知类型:1邮箱,2短信
     */
	@TableField("send_type")
	private String sendType;
    /**
     * 手机号
     */
	private String mobile;
    /**
     * 邮箱
     */
	private String email;
    /**
     * 删除标志:00未删除,-1已删除
     */
	@TableField("delete_flag")
	private String deleteFlag;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 修改时间
     */
	@TableField("update_time")
	private Date updateTime;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserOpenId() {
		return userOpenId;
	}

	public void setUserOpenId(String userOpenId) {
		this.userOpenId = userOpenId;
	}

	public String getNovelWebId() {
		return novelWebId;
	}

	public void setNovelWebId(String novelWebId) {
		this.novelWebId = novelWebId;
	}

	public String getNovelId() {
		return novelId;
	}

	public void setNovelId(String novelId) {
		this.novelId = novelId;
	}

	public String getNovelTitle() {
		return novelTitle;
	}

	public void setNovelTitle(String novelTitle) {
		this.novelTitle = novelTitle;
	}

	public String getNovelLatestChapter() {
		return novelLatestChapter;
	}

	public void setNovelLatestChapter(String novelLatestChapter) {
		this.novelLatestChapter = novelLatestChapter;
	}

	public Date getLastSendTime() {
		return lastSendTime;
	}

	public void setLastSendTime(Date lastSendTime) {
		this.lastSendTime = lastSendTime;
	}

	public String getSendFlag() {
		return sendFlag;
	}

	public void setSendFlag(String sendFlag) {
		this.sendFlag = sendFlag;
	}

	public String getSendType() {
		return sendType;
	}

	public void setSendType(String sendType) {
		this.sendType = sendType;
	}

	public String getMobile() {
		return mobile;
	}

	public void setMobile(String mobile) {
		this.mobile = mobile;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getDeleteFlag() {
		return deleteFlag;
	}

	public void setDeleteFlag(String deleteFlag) {
		this.deleteFlag = deleteFlag;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public Date getUpdateTime() {
		return updateTime;
	}

	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "UserNovel{" +
			"id=" + id +
			", userOpenId=" + userOpenId +
			", novelWebId=" + novelWebId +
			", novelId=" + novelId +
			", novelTitle=" + novelTitle +
			", novelLatestChapter=" + novelLatestChapter +
			", lastSendTime=" + lastSendTime +
			", sendFlag=" + sendFlag +
			", sendType=" + sendType +
			", mobile=" + mobile +
			", email=" + email +
			", deleteFlag=" + deleteFlag +
			", createTime=" + createTime +
			", updateTime=" + updateTime +
			"}";
	}
}
